package constants;

/** The enum with all the supported percents for the brick breaker game.
 * @author Team 1
 *
 */
public enum PercentNumber {
	ZERO, TWENTY_FIVE, FIFTY, HUNDRED;
	
	public static PercentNumber intToPercentNumber(int value) {
		switch(value) {
		case 0:
			return PercentNumber.ZERO;
		case 1:
			return PercentNumber.TWENTY_FIVE;
		case 2:
			return PercentNumber.FIFTY;
		default:
			return PercentNumber.HUNDRED;
		}
	}
	
	public Integer percentNumberToInteger() {
		switch (this) {
		case ZERO:
			return 0;
		case TWENTY_FIVE:
			return 1;
		case FIFTY:
			return 2;
		default:
			return 3;
		}
	}
}
